dea0688de9be51992edfc137c4b40f4e5865227a,server/src/main/java/org/jboss/as/server/deployment/DeploymentFullReplaceHandler.java,DeploymentFullReplaceHandler,execute,#OperationContext#ModelNode#ResultHandler#,83
Before Change
hash = operation.get(HASH).asBytes();
if (!deploymentRepository.hasDeploymentContent(hash)) {
throw new OperationFailedException(new ModelNode().set(String.format(
"No deployment content with hash %s is available in the deployment content repository.",
HashUtil.bytesToHexString(hash))));
}
} else {
throw new OperationFailedException(new ModelNode().set("Neither an attachment or a hash were passed in"));
After Change
hash = operation.get(HASH).asBytes();
if (!deploymentRepository.hasDeploymentContent(hash)) {
throw createFailureException("No deployment content with hash %s is available in the deployment content repository.", HashUtil.bytesToHexString(hash));
}
} else if (hasValidDeploymentParameterDefined(operation)) {
InputStream in = getContents(context, operation);